package com.book.service;

import com.book.pojo.Author;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.vo.AuthorVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cxy
 * @since 2023-10-11 21:58:42
 */
public interface AuthorService extends IService<Author> {

    int getBookNumByAuthorId(Long id);

    List<Author> getAuthorById(Long id);

    AuthorVo getAuthorCenterById(Long id);

    int updateAuthor(Author author);

}